package org.lemon.transport.context.data.security;

import java.io.Serializable;

public class DeviceTokenCredentials implements DeviceCredentialsFilter, Serializable {

    private static final long serialVersionUID = -7869261127032877765L;

    private final String token;

    public DeviceTokenCredentials(String token) {
        this.token = token;
    }

    @Override
    public String getCredentialsId() {
        return this.token;
    }

    @Override
    public DeviceCredentialsType getCredentialsType() {
        return DeviceCredentialsType.ACCESS_TOKEN;
    }

    @Override
    public String toString() {
        return "DeviceTokenCredentials [token=" + token + "]";
    }
}
